﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace DingTalk.Sdk.Request
{
    public class TextRequest : IRequest
    {
        [JsonProperty("at")]
        public AtContent At { get; set; }

        [JsonProperty("text")]
        public TextContent Text { get; set; }

        [JsonProperty("msgtype")]
        public string Msgtype { get; } = "text";
    }

    public class AtContent
    {
        [JsonProperty("atMobiles")]
        public List<string> AtMobiles { get; set; }

        [JsonProperty("atUserIds")]
        public List<string> AtUserIds { get; set; }

        [JsonProperty("isAtAll")]
        public bool IsAtAll { get; set; }
    }

    public class TextContent
    {
        [JsonProperty("content")]
        public string Content { get; set; }
    }
}
